/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2024-12-27
 * Time: 20:13
 *//*


interface IShape{
    public abstract double getArea();
    public abstract double getPerimeter();
}

class RTriangle implements IShape{
   private double a, b;
    public RTriangle(double a, double b){
        this.a = a;
        this.b = b;
    }

    @Override
    public double getArea() {
        return (a*b)/2;
    }

    @Override
    public double getPerimeter() {
        return Math.sqrt((a*a+b*b))+a+b;
    }
}

public class Sec {
}
*/
